import React from 'react';
import {messages} from "share/common";
import moment from "moment/moment";
import selectedImg from 'images/financial-management/selected.png'

export default {
  hotelColumns() {
    return [
      {
        /*账户ID*/
        title: messages('financial-management.key709')/*账户ID*/,
        key: "accountId",
        dataIndex: 'accountId',
        width: 120,
      },
      {
        title: '费用承担公司名称',
        key: "companyName",
        dataIndex: 'companyName',
        width: 120,
      },
      {
        /*结算批次号*/
        title: messages('financial-management.key113')/*批次号*/,
        key: "accCheckBatchNo",
        dataIndex: 'accCheckBatchNo',
        width: 120,
      },
      {
        title: messages('financial-management.key859')/*结算ID*/,
        key: "recordId",
        dataIndex: 'recordId',
        width: 120,
      },
      {
        /*订单号*/
        title: messages('financial-management.key52'/*订单号*/),
        key: "meiyaOrderNo",
        dataIndex: 'meiyaOrderNo',
        width: 120,
      },
      {
        /*预订渠道*/
        title: '预订渠道',
        key: "meiyaBookChanel",
        dataIndex: 'meiyaBookChanel',
        width: 120,
      },
      {
        /*预定日期*/
        title: '预定日期',
        key: "meiyaBookDate",
        dataIndex: 'meiyaBookDate',
        width: 120,
      },
      {
        /*旅客中文名*/
        title: '旅客中文名',
        key: "meiyaClientName",
        dataIndex: 'meiyaClientName',
        width: 120,
      },
      {
        /*旅客部门*/
        title: '旅客部门',
        key: "meiyaClientDept",
        dataIndex: 'meiyaClientDept',
        width: 120,
      },
      {
        /*成本中心*/
        title: '成本中心',
        key: "meiyaCostCenter",
        dataIndex: 'meiyaCostCenter',
        width: 120,
      },
      {
        /*产品性质*/
        title: '产品性质',
        key: "meiyaOrderType",
        dataIndex: 'meiyaOrderType',
        width: 120,
      },
      {
        /*酒店名称*/
        title: '酒店名称',
        key: "meiyaHotel",
        dataIndex: 'meiyaHotel',
        width: 120,
      },
      {
        /*酒店类型*/
        title: '酒店类型',
        key: "hotelType",
        dataIndex: 'hotelType',
        width: 120,
      },
      {
        /*房费总额*/
        title: '房费总额',
        key: "meiyaRoomAmount",
        dataIndex: 'meiyaRoomAmount',
        width: 120,
      },
      {
        /*税费总额*/
        title: '税费总额',
        key: "meiyaTax",
        dataIndex: 'meiyaTax',
        width: 120,
      },
      {
        /*应收合计*/
        title: '应收合计',
        key: "meiyaAmount",
        dataIndex: 'meiyaAmount',
        width: 120,
      },
      {
        /*实收金额*/
        title: '实收金额',
        key: "meiyaRealAmount",
        dataIndex: 'meiyaRealAmount',
        width: 120,
      },
      {
        /*欠收金额*/
        title: '欠收金额',
        key: "meiyaOweAmount",
        dataIndex: 'meiyaOweAmount',
        width: 120,
      },
      {
        /*汇联易订单号*/
        title: '汇联易订单号',
        key: "orderNo",
        dataIndex: 'orderNo',
        width: 120,
      },
      {
        /*操作类型*/
        title: '操作类型',
        key: "orderType",
        dataIndex: 'orderType',
        width: 120,
      },
      {
        /*房型支付类型*/
        title: '房型支付类型',
        key: "payType",
        dataIndex: 'payType',
        width: 120,
      },
      {
        /*预定人姓名*/
        title: '预定人姓名',
        key: "bookerName",
        dataIndex: 'bookerName',
        width: 120,
      },{
        /*预定人工号*/
        title: '预定人工号',
        key: "bookerCode",
        dataIndex: 'bookerCode',
        width: 120,
      },
      {
        /*预定人公司编码*/
        title: '预定人公司编码',
        key: "bookerCompanyCode",
        dataIndex: 'bookerCompanyCode',
        width: 120,
      },
      {
        /*预定人公司名称*/
        title: '预定人公司名称',
        key: "bookerCompanyName",
        dataIndex: 'bookerCompanyName',
        width: 120,
      },
      {
        /*预定人部门*/
        title: '预定人部门',
        key: "bookerDepartmentName",
        dataIndex: 'bookerDepartmentName',
        width: 120,
      },
      {
        /*入住人姓名*/
        title: '入住人姓名',
        key: "clientName",
        dataIndex: 'clientName',
        width: 120,
      },
      {
        /*入住人工号*/
        title: '入住人工号',
        key: "clientCode",
        dataIndex: 'clientCode',
        width: 120,
      },
      {
        /*入住人公司*/
        title: '入住人公司',
        key: "clientCompanyName",
        dataIndex: 'clientCompanyName',
        width: 120,
      },
      {
        /*入住人部门*/
        title: '入住人部门',
        key: "clientDepartmentName",
        dataIndex: 'clientDepartmentName',
        width: 120,
      },
      {
        /*间夜数*/
        title: '间夜数',
        key: "quantity",
        dataIndex: 'quantity',
        width: 120,
      },
      {
        /*国内/国际*/
        title: '国内/国际',
        key: "hotelClass",
        dataIndex: 'hotelClass',
        width: 120,
      },
      {
        /*酒店城市*/
        title: '酒店城市',
        key: "hotelCityName",
        dataIndex: 'hotelCityName',
        width: 120,
      },
      {
        /*订单总价*/
        title: '订单总价',
        key: "amount",
        dataIndex: 'amount',
        width: 120,
      },
      {
        /*酒店星级*/
        title: '酒店星级',
        key: "hotelStar",
        dataIndex: 'hotelStar',
        width: 120,
      },
      {
        /*费用承担公司编号*/
        title: '费用承担公司编号',
        key: "companyCode",
        dataIndex: 'companyCode',
        width: 120,
      },
      {
        /*成本中心编码*/
        title: '成本中心编码',
        key: "costCenterCode",
        dataIndex: 'costCenterCode',
        width: 120,
      },
      {
        /*成本中心名称*/
        title: '成本中心名称',
        key: "costCenterName",
        dataIndex: 'costCenterName',
        width: 120,
      },
      {
        /*违反的差旅政策名称*/
        title: '违反的差旅政策名称',
        key: "reason",
        dataIndex: 'reason',
        width: 120,
      },
      {
        /*重复对账*/
        title: '重复对账',
        key: "flag",
        dataIndex: 'flag',
        width: 120,
      },
      {
        /*比对结果*/
        title: '比对结果',
        key: "result",
        dataIndex: 'result',
        width: 120,
      },
      {
        /*结算日期*/
        title: messages('financial-management.key41'/*结算日期*/),
        key: "dataChangeLastTime",
        dataIndex: 'dataChangeLastTime',
        render: (value) => moment(value).format('YYYY-MM-DD'),
        width: 120,
      },
      // todo  数据落地日期
      // {
      //   title: messages('financial-management.key725')/*付款类型*/, key: "payType", dataIndex: 'payType',
      //   render: value => value === 'Y' ? messages('financial-management.key726')/*主账户支付*/ : messages('financial-management.key727')/*现付*/,
      //   width: 120,
      // },
      {
        /*支付类型*/
        title: messages('financial-management.key60'/*支付类型*/),
        key: "unityPayType",
        dataIndex: 'unityPayType',
        width: 120,
      },
      {
        title: messages('financial-management.key860')/*操作类型*/,
        key: "detailType",
        dataIndex: 'detailType',
        width: 120,
      },
      // TODO 导入渠道
      {
        title: messages('financial-management.key926')/*导入渠道*/,
        key: "dataFrom",
        dataIndex: 'dataFrom',
        width: 120,
      },
      {
        title: '供应商名称',
        key: "vendor",
        dataIndex: 'vendor',
        width: 120,
      },
      {
        title: messages('financial-management.key822')/*预订人姓名*/,
        key: "employeeName",
        dataIndex: 'employeeName',
        width: 120,
      },
      // {
      //   /*国内国际*/
      //   title: messages('financial-management.key792')/*国内/国际*/,
      //   key: "internationalType",
      //   dataIndex: 'internationalType',
      //   width: 120,
      // },
      {
        /*酒店城市*/
        title: messages('financial-management.key868')/*入住城市*/,
        key: "cityName",
        dataIndex: 'cityName',
        width: 120,
      },
      {
        /*入住人*/
        title: messages('financial-management.key54'/*入住人*/),
        key: "clientNames",
        dataIndex: 'clientNames',
        width: 120,
      },
      {
        /*入住日期*/
        title: messages('request.key360'/*入住日期*/),
        key: "startTime",
        dataIndex: 'startTime',
        width: 120,
      },
      {
        /*离店日期*/
        title: messages('financial-management.key724')/*离店日期*/,
        key: "endTime",
        dataIndex: 'endTime',
        width: 120,
      },
      {
        /*间夜*/
        title: messages('financial-management.key869')/*入住间夜数*/,
        key: "roomNight",
        dataIndex: 'roomNight',
        width: 120,
      },
      {
        /*价格*/
        title: messages('financial-management.key866')/*应付金额*/,
        key: "totalAmount",
        dataIndex: 'totalAmount',
        width: 120,
      },
      {
        title: messages('financial-management.key712')/*服务费*/,
        key: "meiyaServiceFee",
        dataIndex: 'meiyaServiceFee',
        width: 120,
      },
      {
        title: messages('financial-management.key951')/*手续费*/,
        key: "extraCharge",
        dataIndex: 'extraCharge',
        width: 120,
      },
      {
        /*币种*/
        title: messages('financial-management.key53'/*币种*/),
        key: "currency",
        dataIndex: 'currency',
        width: 120,
      },
      {
        /*酒店名称*/
        title: messages('financial-management.key728')/*酒店名称*/,
        key: "hotelName",
        dataIndex: 'hotelName',
        width: 120,
      },
      {
        /*星级*/
        title: messages('financial-management.key870')/*酒店星级*/,
        key: "star",
        dataIndex: 'star',
        width: 120,
      },
      {
        /*关联行程号*/
        title: messages('financial-management.key43'/*关联行程号*/),
        key: "hotelRelatedJourneyNo",
        dataIndex: 'hotelRelatedJourneyNo',
        width: 120,
      },
      {
        /*成本中心1*/
        title: messages('financial-management.key871')/*订单成本中心1*/,
        key: "costCenter",
        dataIndex: 'costCenter',
        width: 120,
      },
      {
        /*成本中心2*/
        title: messages('financial-management.key872')/*订单成本中心2*/,
        key: "costCenter2",
        dataIndex: 'costCenter2',
        width: 120,
      },
      {
        /*成本中心3*/
        title: messages('financial-management.key873')/*订单成本中心3*/,
        key: "costCenter3",
        dataIndex: 'costCenter3',
        width: 120,
      },
      {
        /*自定义字段1*/
        title: messages('financial-management.key874')/*备注1*/,
        key: "defineFlag",
        dataIndex: 'defineFlag',
        width: 120,
      },
      {
        /*自定义字段2*/
        title: messages('financial-management.key875')/*备注2*/,
        key: "defineFlag2",
        dataIndex: 'defineFlag2',
        width: 120,
      },
      {
        /*是否超标*/
        title: messages('financial-management.key793')/*是否超标*/,
        key: "excessive",
        dataIndex: 'excessive',
        width: 120,
        render: value => value === true ? messages('financial-management.key316')/*是*/ : value === false ? messages('financial-management.key317')/*否*/ : '',
      },
      {
        /*超标原因*/
        title: messages('financial-management.key794')/*超标原因*/,
        key: "reasonRemark",
        dataIndex: 'reasonRemark',
        width: 120,
      },
      {
        title: messages('financial-management.key171')/*申请单号*/,
        key: "businessCode",
        dataIndex: 'businessCode',
        width: 120,
      },
      // todo 申请单名称
      // todo 申请人OID
      // todo 申请人工号
      // todo 申请人姓名
      // todo 参与人
      // todo 表单入住城市
      // todo 表单入住日期
      // todo 表单离店日期
      // todo 预订人公司
      // todo 公司
      // todo 部门
      // todo 部门
      // todo 表单成本中心1code
      // todo 表单成本中心1名称
      // todo 表单成本中心2code
      // todo 表单成本中心2名称
      // todo 表单成本中心3code
      // todo 表单成本中心3名称
      // todo 表单成本中心4code
      // todo 表单成本中心4名称
      // todo 表单成本中心5code
      // todo 表单成本中心5名称
    ]
  },
}
